Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shell completion #97

Merged
merged 6 commits into from May 11, 2023
Merged

Add shell completion #97

merged 6 commits into from May 11, 2023

Conversation

cnpryer
Copy link
Contributor

@cnpryer cnpryer commented May 2, 2023

Closes #90

@cnpryer
Copy link
Contributor Author

cnpryer commented May 3, 2023

I've been using fish lately (new to it). I don't think I tested this right.

@cnpryer cnpryer marked this pull request as draft May 3, 2023 17:57
@cnpryer
Copy link
Contributor Author

cnpryer commented May 3, 2023

It works in a bash shell.

bash-3.2$ rye 
--help     -h         build      help       install    make-req   remove     self       show       toolchain  
--version  add        fetch      init       lock       pin        run        shell      sync       uninstall

Maybe my fish setup is wrong, but whenever I tab for the first time share/doc/fish/index.html opens up from my brew install. Otherwise:

chrispryer@Chriss-MacBook-Pro ~> rye 
add                           (Adds a Python package to this project)
build                             (Builds a package for distribution)
completion                (Generates a completion script for a shell)
fetch            (Fetches a Python interpreter for the local machine)
help      (Print this message or the help of the given subcommand(s))
init                                   (Creates a new python project)
install                           (Installs a package as global tool)
lock          (Updates the lockfiles without installing dependencies)
make-req  (Builds and prints a PEP 508 requirement string from parts)
pin                           (Pins a Python version to this project)
remove                          (Removes a package from this project)
run                      (Runs a command installed into this package)
self                                            (Rye self management)
shell                  (Spawns a shell with the virtualenv activated)
show                        (Prints the current state of the project)
sync             (Updates the virtualenv based on the pyproject.toml)
toolchain                (Helper utility to manage Python toolchains)

Up to you if you want to merge.

@cnpryer cnpryer marked this pull request as ready for review May 3, 2023 20:37
@mitsuhiko mitsuhiko merged commit b3bc533 into astral-sh:main May 11, 2023
6 checks passed
@cnpryer cnpryer deleted the completion branch May 11, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shell completion
2 participants